package com.act.moudles.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 套餐详情(ComboDetail)表实体类
 *
 * @author makejava
 * @since 2023-05-08 00:32:00
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@TableName("s_combo_detail")
public class ComboDetail {
    //主键
    private Long id;
    //套餐ID
    private Long comboId;
    //菜单ID
    private Long menuId;


    public LambdaQueryWrapper<ComboDetail> query(){
        LambdaQueryWrapper<ComboDetail> query = new LambdaQueryWrapper<>();
        query.eq(id != null,ComboDetail::getId,id);
        query.eq(comboId != null,ComboDetail::getComboId,comboId);
        query.eq(menuId != null,ComboDetail::getMenuId,menuId);
        return query;
    }


}

